<template>
  <div id="quesEdit">
    <!--使用公共头部区-->
    <c-header :classId1="className"></c-header>
    <!--编辑问卷主体区-->
    <div class="edit-body">
      <div class="edit-header">
        <span>编辑问卷</span>
      </div>
      <!--左边内容更换区之题目控件-->
      <div id="title-ctro" v-if="activeName=='first'">
        <span class="b-radio" :class="{ctractive:isctrActive}" @click="rQebodyshow()">
      		<input type="radio" checked="checked" />
      		单选题
      	</span>
        <span class="b-textarea" :class="{ctractive:isctrBctive}" @click="tQebodyshow()">
      		<i class="el-icon-document"></i>
      		多行文本
      	</span>
      </div>
      <!--左边内容更换区之问卷大纲-->
      <div id="outline-ctro" v-else>
        <ul>
          <li>1、请问您对管理处人员的服务态度感到？</li>
          <li>2、请问您对管理处人员的服务态度感到？</li>
          <li>3、请问您对管理处人员的服务态度感到？</li>
        </ul>
      </div>
      <!--element-ui组件区-->
      <div class="edit-content">
        <!--左边区域-->
        <el-tabs :tab-position="tabPosition" v-model="activeName" style="position: absolute;">
          <el-tab-pane label="题目控件" name="first">

          </el-tab-pane>
          <el-tab-pane label="问卷大纲" name="second">

          </el-tab-pane>
        </el-tabs>
        <!--右边区域-->
        <div id="tab-right">
          <el-tabs v-model="editableTabsValue" type="card" editable @edit="handleTabsEdit">
            <el-tab-pane :key="item.name" v-for="(item, index) in editableTabs" :label="item.title" :name="item.name">
              <!--添加子组件-->
              <div id="Qedit">
                <div class="Qedit-content">
                  <div class="Qe-header">
                    <ul>
                      <li><span>问卷名：</span>满意度问卷A</li>
                      <li><span>主标题：</span>彩生活</li>
                      <li><span>副标题：</span>满意度问卷调查</li>
                      <li><span>主文案：</span>为了给您提供更好的服务，希望您能抽出几分钟时间，将您的感受和建议告诉我们，我们非常重视</li>
                    </ul>
                    <div class="hea-select">
                      <el-select v-model="selvalue" placeholder="题库类型">
                        <el-option v-for="selitem in seloptions" :key="selitem.selvalue" :label="selitem.sellabel" :value="selitem.selvalue">

                        </el-option>
                      </el-select>
                    </div>
                  </div>
                  <!--单选按钮区域-->
                  <div class="Qe-body" v-if="Qebodyshow">
                    <h5>{{Qtitle}}</h5>
                    <div class="Qe-radio">
                      <el-radio v-model="radio" label="1">非常不满意</el-radio>
                      <el-radio v-model="radio" label="2">不满意</el-radio>
                      <el-radio v-model="radio" label="3">一般</el-radio>
                      <el-radio v-model="radio" label="4">非常满意</el-radio>
                      <el-radio v-model="radio" label="5">比较满意</el-radio>
                    </div>
                    <div class="Qe-title">
                      <span>题目</span>
                      <el-input placeholder="请输入题目" v-model="Qtitle" clearable>
                      </el-input>
                    </div>
                    <div class="Qe-type">
                      <span class="qe-span1">题目类型</span>
                      <el-select v-model="childvalue4" clearable placeholder="请选择">
                        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                      </el-select>
                      <span class="qe-span2">题目规则</span>
                      <el-select v-model="value42" clearable placeholder="请选择">
                        <el-option v-for="item2 in options2" :key="item2.value" :label="item2.label" :value="item2.value">
                        </el-option>
                      </el-select>
                    </div>
                    <div class="bo-btn">
                      <button>确定</button>
                    </div>
                  </div>
                  <!--文本框区域-->
                  <div class="textQe-body" v-if="textQebodyshow">
                    <div class="textQe-title">
                      <span>题目</span>
                      <el-input placeholder="请输入题目" v-model="textQtitle" clearable>
                      </el-input>
                    </div>
                    <textarea rows="7" placeholder="这是给用户留言的" disabled="disabled"></textarea>
                    <div class="bo-btn">
                      <button>确定</button>
                    </div>
                  </div>
                </div>
                <div class="Qe-footer">
                  <button class="qeb1" @click="ispremask=!ispremask">预览</button>
                  <button class="qeb2" @click="ismask=!ismask">保存</button>
                  <button class="qeb3" @click="addTemplate()">新增模板</button>
                </div>
              </div>
            </el-tab-pane>
          </el-tabs>
          <div class="Hang-right">
            <h5 v-model="showHang" @click="showHang=!showHang">展开题库</h5>
            <transition name="fade">
              <div class="ha-content" v-if="showHang">
                <el-tree :data="data" :props="defaultProps" accordion @node-click="handleNodeClick">
                </el-tree>
              </div>
            </transition>
          </div>
        </div>
      </div>
    </div>

    <!--问卷设置遮罩层区域一-->
    <transition name="fade">
      <div class="hidden mask" v-if="ismask">
        <div class="qm-content">
          <h5>问卷设置</h5>
          <p class="Emp1">
            <span>回收设置</span>
            <el-switch v-model="value2" active-color="#169BD5" inactive-color="#ccc"></el-switch>
            <span class="mar-left">设定回收结束时间</span>
          </p>
          <div class="block">
            <el-date-picker v-model="value7" type="daterange" align="left" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions2">

            </el-date-picker>
          </div>
          <p class="Emp2">
            <span>整体范围设置</span>
            <el-switch v-model="value4" active-color="#169BD5" inactive-color="#ccc"></el-switch>
            <span class="mar-left">设定全覆盖范围的随机抽样比列</span>
          </p>
          <p class="Emp3">
            <span>范围设置</span>
            <el-select v-model="emp3value" placeholder="请选择">
              <el-option v-for="emp3item in emp3options" :key="emp3item.emp3value" :label="emp3item.emp3label" :value="emp3item.emp3value">

              </el-option>
            </el-select>
            <span class="mar-left">设定问卷推送范围</span>
            <input type="button" value="导入" />
          </p>
          <div class="orga-checkbox">
            <el-tree :data="data2" show-checkbox node-key="id" :props="defaultProps">

            </el-tree>
          </div>
          <p class="Emp4">
            <span>多阶段高级设置</span>
            <el-switch v-model="value5" active-color="#169BD5" inactive-color="#ccc"></el-switch>
          </p>
          <transition name="fade">
            <div class="qm2-content" v-if="value5">
              <table>
                <tr>
                  <th>阶段名称</th>
                  <th>时间段</th>
                  <th>覆盖率</th>
                </tr>
                <tr>
                  <td>
                    <input type="text" v-model="quarter" value="{quarter}" />
                  </td>
                  <td>
                    <el-date-picker v-model="value112" type="date" placeholder="选择日期">
                    </el-date-picker>
                    至
                    <el-date-picker v-model="value212" type="date" placeholder="选择日期">
                    </el-date-picker>
                  </td>
                  <td><span>1/3</span></td>
                </tr>
                <tr>
                  <td>
                    <input type="text" v-model="quarter" value="{quarter}" />
                  </td>
                  <td>
                    <el-date-picker v-model="value312" type="date" placeholder="选择日期">
                    </el-date-picker>
                    至
                    <el-date-picker v-model="value313" type="date" placeholder="选择日期">
                    </el-date-picker>
                  </td>
                  <td><span>1/3</span></td>
                </tr>
              </table>
            </div>
          </transition>
          <div class="mask-btn">
            <button class="mbtn1" @click="ismask=!ismask">取消</button>
            <button class="mbtn2">确定</button>
          </div>
        </div>
      </div>
    </transition>
    <!--预览遮罩层区域-->
    <transition name="fade">
      <div class="hidden premask" v-if="ispremask">
        <div class="pre-content">
          <ul>
            <li>
              <h5>{{hqtitle}}</h5>
              <div class="hq-radio">
                <el-radio v-model="radio33" label="1">非常不满意</el-radio>
                <el-radio v-model="radio33" label="2">不满意</el-radio>
                <el-radio v-model="radio33" label="3">一般</el-radio>
                <el-radio v-model="radio33" label="4">非常满意</el-radio>
                <el-radio v-model="radio33" label="5">比较满意</el-radio>
              </div>
            </li>
            <li>
              <h5>{{hqtitle1}}</h5>
              <div class="hq-radio">
                <el-radio v-model="radio66" label="1">非常不满意</el-radio>
                <el-radio v-model="radio66" label="2">不满意</el-radio>
                <el-radio v-model="radio66" label="3">一般</el-radio>
                <el-radio v-model="radio66" label="4">非常满意</el-radio>
                <el-radio v-model="radio66" label="5">比较满意</el-radio>
              </div>
            </li>
          </ul>
          <!--关闭按钮-->
          <span class="close el-icon-close" @click="ispremask=!ispremask"></span>
        </div>
      </div>
    </transition>
  </div>
</template>

<script>
  //导入公共头部组件
  import cHeader from '../common/quesHeader.vue';
  export default {
    data() {
      return {
        isctrActive: true,
        isctrBctive: false,
        className: 'active',
        Qebodyshow: true,
        textQebodyshow: false,
        value2: false,
        value4: false,
        value5: false,
        ismask: false,
        ispremask: false,
        showHang: false,
        quarter: "季度1",
        hqtitle: '1.请问您对管理处人员的服务态度感到？',
        hqtitle1: '2.请问您对小区的环境感到如何？',
        radio33: '1',
        radio66: '2',
        //子组件的数据
        radio: '1',
        Qtitle: '1.请问您对管理处人员的服务态度感到？',
        textQtitle: '请问你对小区有什么建议?',
        //右侧题库类型下拉框数据
        seloptions: [{
          selvalue: '选项1',
          sellabel: '人口特征'
        }, {
          selvalue: '选项2',
          sellabel: '满意度'
        }, {
          selvalue: '选项3',
          sellabel: '小区环境'
        }],
        selvalue: '',
        //遮罩层范围设置下拉框数据
        emp3options: [{
          emp3value: '选项1',
          emp3label: '惠东区'
        }, {
          emp3value: '选项2',
          emp3label: '宝安区'
        }, {
          emp3value: '选项3',
          emp3label: '龙岗区'
        }],
        emp3value: '',
        //子组件题目类型选择数据
        options: [{
          value: '选项1',
          label: '单选题'
        }, {
          value: '选项2',
          label: '多选题'
        }],
        childvalue4: '',
        //子组件题目规则选择区域
        options2: [{
          value: '选项1',
          label: '必选题'
        }, {
          value: '选项2',
          label: '非必选题'
        }],
        value42: '',

        //tabs切换页组件
        tabPosition: 'left',
        activeName: 'first',
        editableTabsValue: '2',
        editableTabs: [{
          title: '第1页',
          name: '1',
          content: `<span></span>`
        }, {
          title: '第2页',
          name: '2',
          content: 'Tab 2 content<span></span>'
        }],
        tabIndex: 2,
        //遮罩层时间组件一
        pickerOptions2: {
          shortcuts: [{
            text: '最近一周',
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit('pick', [start, end]);
            }
          }, {
            text: '最近一个月',
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
              picker.$emit('pick', [start, end]);
            }
          }, {
            text: '最近三个月',
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
              picker.$emit('pick', [start, end]);
            }
          }]
        },
        value6: '',
        value7: '',
        //遮罩层时间组件二
        pickerOptions1: {
          disabledDate(time) {
            return time.getTime() > Date.now();
          },
          shortcuts: [{
            onClick(picker) {
              picker.$emit('pick', new Date());
            }
          }, {
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24);
              picker.$emit('pick', date);
            }
          }, {
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit('pick', date);
            }
          }]
        },
        value112: '',
        value113: '',
        value212: '',
        value213: '',
        value312: '',
        value313: '',
        //遮罩层复选框树形控件
        data2: [{
          id: 1,
          label: '华南区',
          children: [{
            id: 4,
            label: '惠州事业部',
            children: [{
              id: 9,
              label: '东城区'
            }, {
              id: 10,
              label: '西城区',
              children: [{
                id: 11,
                label: '老城区'
              }]
            }]
          }]
        }, {
          id: 2,
          label: '华北区',
          children: [{
            id: 5,
            label: '彩生活大厦'
          }, {
            id: 6,
            label: '德香名苑小区'
          }]
        }, {
          id: 3,
          label: '华北区',
          children: [{
            id: 7,
            label: '广州销售部'
          }, {
            id: 8,
            label: '深圳聚财部'
          }]
        }],
        defaultProps: {
          children: 'children',
          label: 'label'
        },
        //展开题库数据信息
        data: [{
          label: '满意度',
          children: [{
            label: '问卷1'
          }, {
            label: '问卷2'
          }, {
            label: '问卷3'
          }]
        }, {
          label: '社会人口特征',
          children: [{
            label: '问卷1'
          }, {
            label: '问卷2'
          }, {
            label: '问卷3'
          }]
        }],
        defaultProps: {
          children: 'children',
          label: 'label'
        }
      }
    },
    methods: {
      tQebodyshow() {
        this.textQebodyshow = true;
        this.Qebodyshow = false;
        this.isctrActive = false;
        this.isctrBctive = true;
      },
      rQebodyshow() {
        this.textQebodyshow = false;
        this.Qebodyshow = true;
        this.isctrActive = true;
        this.isctrBctive = false;
      },
      changeshow() {
        this.show = true;
        console.log(this.show)
      },
      changIsMask() {
        this.ismask = false;
      },
      addTemplate() {
        console.log("新增模板中。。")
      },
      //展开题库方法
      handleNodeClick(data) {
        //console.log(data);
      },
      //tabs切换页组件
      handleTabsEdit(targetName, action) {
        if(action === 'add') {
          let newTabName = ++this.tabIndex + '';
          this.editableTabs.push({
            title: '第' + newTabName + '页',
            name: newTabName,
            content: 'New Tab content'
          });
          this.editableTabsValue = newTabName;
        }
        if(action === 'remove') {
          let tabs = this.editableTabs;
          let activeName = this.editableTabsValue;
          if(activeName === targetName) {
            tabs.forEach((tab, index) => {
              if(tab.name === targetName) {
                let nextTab = tabs[index + 1] || tabs[index - 1];
                if(nextTab) {
                  activeName = nextTab.name;
                }
              }
            });
          }
          this.editableTabsValue = activeName;
          this.editableTabs = tabs.filter(tab => tab.name !== targetName);
        }
      }
    },
    components: {
      "c-header": cHeader
    }
  }
</script>

<style scoped="scoped">
  #quesEdit {
    min-width: 960px;
    font-family: "微软雅黑";
  }
  .edit-body {
    padding: 0 12px;
  }
  .edit-body .edit-header {
    height: 55px;
    width: 100%;
    line-height: 55px;
    border-bottom: 1px solid #ccc;
  }
  .edit-body .edit-header span {
    display: inline-block;
    padding-left: 20px;
    color: #409EFF;
    font-family: "微软雅黑";
    font-size: 17px;
    letter-spacing: 2px;
  }
  /*左边样式区*/
  
  #quesEdit >>> .el-tabs--left .el-tabs__nav-wrap.is-left {
    background-color: rgb(242, 242, 242);
    width: 210px;
    height: 100%;
    border-bottom: 1px solid #ccc;
  }
  #quesEdit >>> .el-tabs--left .el-tabs__item {
    margin-top: 12px;
  }
  #quesEdit >>> .el-tabs--left .el-tabs__item.is-left {
    text-align: center;
    padding-left: 5px;
    margin-bottom: 5px;
    display: inline-block;
    width: 96px;
    height: 35px;
    line-height: 35px;
    margin-right: 2px;
    border: 1px solid #ccc;
  }
  #quesEdit >>> .el-tabs__active-bar {
    background-color: transparent;
  }
  #quesEdit >>> .el-tabs__item.is-active {
    color: #fff;
    background-color: rgb(22, 155, 213);
  }
  .title-btn {
    position: absolute;
    left: 12px;
    top: 120px;
    height: 35px;
    width: 96px;
    z-index: -1;
  }
  #title-ctro {
    position: absolute;
    left: 20px;
    top: 160px;
    height: 70%;
    width: 193px;
    z-index: 9;
  }
  #title-ctro .b-radio {
    height: 38px;
    width: 100%;
    line-height: 38px;
    display: block;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }
  #title-ctro .b-radio:hover {
    cursor: pointer;
    color: #3F93DA;
  }
  #title-ctro .ctractive {
    color: #3F93DA;
  }
  #title-ctro .b-textarea {
    height: 38px;
    width: 100%;
    line-height: 38px;
    display: block;
    border: 1px solid #ccc;
    margin-top: 8px;
    padding-left: 5px;
    box-sizing: border-box;
  }
  #title-ctro .b-textarea:hover {
    cursor: pointer;
    color: #3F93DA;
  }
  #outline-ctro {
    position: absolute;
    left: 12px;
    top: 160px;
    height: 70%;
    width: 200px;
    z-index: 99;
  }
  #outline-ctro ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
  }
  #outline-ctro ul li {
    height: 68px;
    font-size: 14px;
    padding-left: 8px;
    letter-spacing: 1px;
    color: #333;
  }
  #quesEdit >>> .edit-content .el-tabs--left .el-tabs__nav, #quesEdit > > > .el-tabs--right .el-tabs__nav {
    float: none;
    height: 88vh;
    padding-left: 8px;
  }
  /*右边区域*/
  
  #tab-right {
    position: relative;
    margin-left: 210px;
    padding-left: 10px;
    padding-right: 150px;
  }
  #tab-right >>> .el-tabs__nav-scroll {
    overflow: hidden;
    margin-top: 10px;
  }
  #tab-right >>> .el-tabs__nav-prev {
    line-height: 44px;
    font-size: 20px;
    color: #030a19;
    background-color: #ccc;
    margin-top: 10px;
  }
  #tab-right >>> .el-tabs__nav-next {
    position: absolute;
    cursor: pointer;
    line-height: 44px;
    font-size: 20px;
    color: #030a19;
    background-color: #ccc;
    margin-top: 10px;
  }
  #tab-right >>> .el-tabs__new-tab {
    float: right;
    border: 1px solid #d3dce6;
    height: 22px;
    width: 22px;
    line-height: 18px;
    margin: 12px 0 9px 10px;
    border-radius: 3px;
    text-align: center;
    font-size: 20px;
    color: #011225;
    cursor: pointer;
    -webkit-transition: all .15s;
    transition: all .15s;
    outline: none;
    background-color: #ccc;
  }
  .Hang-right {
    position: absolute;
    right: 5px;
    top: 10px;
    box-sizing: border-box;
    width: 140px;
  }
  #quesEdit .Hang-right h5 {
    font-size: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    text-align: center;
  }
  #quesEdit .ha-content {
    position: absolute;
    top: 43px;
    right: 31px;
    height: 57vh;
    width: 200px;
    border: 1px solid #ccc;
    background-color: rgb(255, 255, 255);
    z-index: 99;
    overflow: auto;
    padding: 25px 15px;
  }
  /*遮罩层区域一*/
  
  #quesEdit .hidden {
    display: none;
  }
  #quesEdit .mask {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, .8);
    z-index: 99;
    display: block;
  }
  #quesEdit .mask .qm-content {
    height: 80vh;
    width: 80vw;
    z-index: 100;
    background: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    /*transform: translate(-50%, -50%);*/
    margin-left: -40vw;
    margin-top: -40vh;
    border: 1px solid #ccc;
    overflow: auto;
    padding: 20px 20px 10px 20px;
    box-sizing: border-box;
    border-radius: 5px;
  }
  #quesEdit .qm-content h5 {
    margin: 0;
    font-size: 16px;
    font-family: "微软雅黑";
    border-bottom: 1px solid rgba(0,0,0,.1);
    padding-bottom: 10px;
  }
  .Emp1 span, .Emp2 span, .Emp3 span, .Emp4 span {
    font-size: 14px;
  }
  .Emp1 .mar-left, .Emp2 .mar-left, .Emp3 .mar-left {
    margin-left: 15px;
  }
  .Emp2 {
    margin-top: 40px;
  }
  .Emp3 .el-select {
    outline: none;
    padding: 3px;
    width: 100px;
  }
  .Emp3 input[type="button"] {
    padding: 7px 50px;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    border: 1px solid #DCDFE6;
    margin-left: 4px;
    outline: none;
    cursor: pointer;
  }
  .Emp3 input[type="button"]:hover {
    color: rgb(22, 155, 213);
  }
  #quesEdit .orga-checkbox {
    border: 1px solid #DCDFE6;
    border-radius: 5px;
    padding: 10px 5px;
  }
  .qm-content .mask-btn, .qm2-content .mask-btn {
    width: 80%;
    margin: 100px auto 10px;
    text-align: center;
  }
  .qm-content .mask-btn button, .qm2-content .mask-btn button {
    width: 150px;
    height: 35px;
    line-height: 35px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    outline: none;
    border: none;
  }
  .qm-content .mask-btn .mbtn1, .qm2-content .mask-btn .mbtn1 {
    background-color: #fff;
    border: 1px solid #DCDFE6;
    color: #333;
    margin-right: 5px;
  }
  .qm-content .mask-btn .mbtn2, .qm2-content .mask-btn .mbtn2 {
    background-color: rgb(22, 155, 213);
    color: #fff;
    margin-left: 5px;
  }
  /*遮罩层区域里面的多阶段高级设置*/
  
  .qm2-content {
    margin-top: 40px;
  }
  .qm2-content h5 {
    margin: 0;
    font-size: 16px;
    font-family: "微软雅黑";
    border-bottom: 1px solid #DCDFE6;
    padding-bottom: 10px;
  }
  .qm2-content p {
    margin: 20px 0 20px 30px;
  }
  .qm2-content table {
    width: 90%;
    margin: 5px auto;
    text-align: center;
    padding: 5px 10px;
  }
  .qm2-content table th {
    height: 34px;
    line-height: 34px;
    font-weight: normal;
  }
  .qm2-content table td {
    border: 1px solid #DCDFE6;
    color: #333;
    border-radius: 5px;
    text-align: center;
  }
  .qm2-content table td:nth-child(1) input {
    height: 24px;
    border: none;
    outline: none;
    text-align: center;
  }
  .qm2-content table td:nth-child(2) {
    border: none;
  }
  .qm2-content .add {
    height: 20px;
    width: 20px;
    margin-left: 3%;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  /*预览遮罩层区域*/
  
  #quesEdit .premask {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 99;
    display: block;
  }
  #quesEdit .pre-content {
    position: absolute;
    left: 50%;
    top: 50%;
    /*点击单选按钮会出现页面抖动效果,使用margin负值代替*/
    /*transform: translate(-50%, -50%);*/
    width: 80vw;
    height: 80vh;
    margin-left: -40vw;
    margin-top: -40vh;
    background-color: #fff;
    overflow: auto;
    border-radius: 5px;
    box-shadow: 1px 1px 8px #000;
  }
  #quesEdit .pre-content ul {
    list-style: none;
  }
  .pre-content ul li {
    margin-bottom: 20px;
  }
  .pre-content li h5 {
    margin: 0;
    margin-bottom: 5px;
    padding: 0;
  }
  .pre-content .close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 25px;
  }
  .pre-content .close:hover {
    color: red;
    cursor: pointer;
    transition: color .2s ease-in;
  }
  /*子组件的样式*/
  
  #Qedit {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: auto;
  }
  #Qedit .Qedit-content {
    padding: 5px 15px;
    height: 60vh;
    overflow: auto;
  }
  #Qedit .Qe-header {
    position: relative;
    color: rgb(107, 107, 107);
    font-size: 14px;
    padding-bottom: 30px;
    box-shadow: 0px 1px 3px #ccc;
    padding-left: 5px;
    padding-top: 5px;
  }
  #Qedit .Qe-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #Qedit .Qe-header li {
  	height: 25px;
  }
  #Qedit .Qe-header li span {
  	color: #333;
  }
  .Qe-header .hea-select {
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: #fff;
    width: 100px;
  }
  /*单选按钮区域*/
  
  .Qe-body {
    margin-top: 10px;
    position: relative;
    padding-bottom: 50px;
  }
  .Qe-body h5 {
    height: 35px;
    line-height: 35px;
    padding-left: 1px;
    width: 100%;
    color: black;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 6px;
  }
  .Qe-title {
    margin-top: 30px;
    padding-left: 5px;
    width: 100%;
    color: black;
    font-size: 16px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, .1);
    overflow: hidden;
    height: 50px;
    line-height: 50px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }
  .Qe-title span {
    letter-spacing: 14px;
    margin-right: 5px;
    color: #333;
    font-size: 15px;
  }
  .Qe-title >>> .el-input {
    height: 24px;
    line-height: 24px;
    width: 27vw;
    padding-right: 8px;
  }
  .Qe-type {
    width: 100%;
    color: black;
    font-size: 16px;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, .1);
    padding-left: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-sizing: border-box;
  }
  .Qe-type .qe-span1 {
  	color: #333;
    font-size: 15px;
  }
  .Qe-type .qe-span2 {
    margin-left: 20px;
    color: #333;
    font-size: 15px;
  }
  .Qe-type .el-select {
    width: 11vw;
  }
  .bo-btn button {
    position: absolute;
    right: 10px;
    bottom: 5px;
    height: 28px;
    width: 100px;
    line-height: 28px;
    text-align: center;
    background-color: rgb(22,155,213);
    color: #fff;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    border: none;
    letter-spacing: 3px;
  }
  .Qe-footer {
    width: 450px;
    height: auto;
    margin: 20px auto;
    text-align: center;
  }
  .Qe-footer button {
    height: 35px;
    width: 130px;
    line-height: 35px;
    text-align: center;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    border: none;
  }
  .Qe-footer .qeb1 {
    border: 1px solid #DCDFE6;
    color: #333;
    background-color: #fff;
    margin-right: 5px;
  }
  .Qe-footer .qeb2 {
    background-color: rgb(22, 155, 213);
    color: #fff;
    margin-left: 5px;
  }
  .Qe-footer .qeb3 {
    border: 1px solid #ccc;
    color: #333;
    background-color: #fff;
    margin-left: 10px;
  }
  /*文本按钮区域*/
  
  .textQe-body {
    margin-top: 10px;
    position: relative;
    padding-bottom: 40px;
  }
  .textQe-title {
    margin-top: 18px;
    padding: 0 2px;
    width: 100%;
    color: black;
    font-size: 16px;
    box-sizing: border-box;
    height: 50px;
    line-height: 50px;
  }
  .textQe-title span {
    letter-spacing: 3px;
  }
  .textQe-title >>> .el-input {
    height: 24px;
    line-height: 24px;
    width: 41vw;
  }
  .textQe-body textarea {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    resize: none;
    border-radius: 5px;
    border-color: #dcdfe6;
  }
  /*遮罩层统一动画*/
  
  .fade-enter {
    opacity: 0;
  }
  .fade-enter-active {
    transition: opacity 1s;
  }
  .fade-leave-to {
    opacity: 0;
  }
  .fade-leave-active {
    transition: opacity 1s;
  }
</style>